Created: 2022-07-09
Tags: #fleeting
-> When transferred between different systems
-> XML can be used on any systems
-> can be changed without affecting data presentation
-> Validates syntax using DTD and Schema
-> Mostly starts with XML Prolog.
-> Must have ROOT element
-> Case sensitive language**
Not compulsory but good practice to put that line in all your XML documents.
<?xml version="1.0" encoding="UTF-8"?>
^- XML Prolog Specifies -^
ROOT element<mail> is ROOT element
<to>, <from>, <subject>, <text> are CHILDREN elements
<mail>
<to>falcon</to>
<from>feast</from>
<subject>About XXE</subject>
<text>Teach about XXE</text>
</mail>
Attributes can be used
<text category = "message">You need to learn about XXE</text>
^--- category is attribute name
^--- "message" is attribute value